<?php

namespace App\Model;

use Illuminate\Database\Eloquent\Model;
use App\Model\CityModel;



//后台模块表
class UserAddressModel extends Model
{
	//定义一个表名
	protected $table = 'user_address';
	//定义主键
	protected $primaryKey = 'id';
	protected $guarded = [];

	//省市区
	static function city($id){
		$name = CityModel::where('Id',$id)->value('Name');
		return $name;
	}
}
